import { httpInstance } from '@/utils/request'

export function uploadImageAPI(tempFilePath: string, token: string) {
  return httpInstance.upload<string>({
    url: 'api/Common/upload',
    name: 'file',
    filePath: tempFilePath,
    fileType: 'image',
    headers: { token },
  })
}
